package com.MartynovichIgor.KnowledgeTest.tools.admintools;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by:
 * User: Igor Martynovich and Guzenko Igor
 * Date: 07.11.13
 */
public class CurrentDate {
    private String currentDate;
    private Date now;
    private DateFormat formatter;

    public CurrentDate(){
      this.now = new Date();
        this.formatter = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
    }

    public String getCurrentDate() {
        currentDate = formatter.format(now);
        return currentDate;
    }
}
